package com.dfbz.bigdata.modules.system.shop.order.services.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dfbz.bigdata.modules.system.shop.order.doman.UandubOrders;
import com.dfbz.bigdata.modules.system.shop.order.dto.MiniUandubOrdersDto;
import com.dfbz.bigdata.modules.system.shop.order.dto.UandubOrdersDto;
import com.dfbz.bigdata.modules.system.shop.order.mapper.UandubOrdersMapperMini;
import com.dfbz.bigdata.modules.system.shop.order.services.UandubOrdersServiceMini;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author CL
* @description 针对表【tb_uandub_orders(订单表)】的数据库操作Service实现
* @createDate 2022-09-23 16:24:44
*/
@Service
@Primary
public class UandubOrdersServiceImplMini extends ServiceImpl<UandubOrdersMapperMini, UandubOrders>
    implements UandubOrdersServiceMini {

    @Autowired
    private UandubOrdersMapperMini uandubOrdersMapper;

    @Override
    public List<UandubOrdersDto> getUandubOrderList(String uubOdNum, int currentPage, int pagesizes) {
        int begin = (currentPage - 1) * pagesizes;
        return uandubOrdersMapper.getUandubOrderList(uubOdNum,begin,pagesizes);
    }

    @Override
    public Integer getTotal() {
        return uandubOrdersMapper.getTotal();
    }

    @Override
    public List<MiniUandubOrdersDto> getMiniOrderList(Long userId,Long expressStatus) {
        return uandubOrdersMapper.getMiniOrderList(userId,expressStatus);
    }
}




